package com.hyk.commonLib.common.utils.dataBinding.bindingAdapter;

import androidx.databinding.BindingAdapter;

import com.hyk.commonLib.common.view.GradientRoundCornerButton;

/**
 * Created by 贺玉琨 on 2020/7/15.
 */
public class GradientRoundCornerButtonParamsAdapter {
    @BindingAdapter(value = {"setBackColor"}, requireAll = false)
    public static void setBackColor(GradientRoundCornerButton button, int backColor) {
        button.setBackColor(backColor);
    }

    @BindingAdapter(value = {"setSecondaryBackColor"}, requireAll = false)
    public static void setSecondaryBackColor(GradientRoundCornerButton button, int secondaryBackColor) {
        button.setSecondaryBackColor(secondaryBackColor);
    }
}
